-- GENERATED SPELL FOR [Venture Co. Ruffian] --


function spell0_28124(pUnit, Event) --@Backhand,n/a--
pUnit:FullCastSpellOnTarget(52908,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28124', 2330, 1)
end

function spell1_28124(pUnit, Event) --@Bonk,n/a--
pUnit:FullCastSpellOnTarget(51601,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28124', 6319, 1)
end

function Sorts_28124(pUnit, Event)
local choix_sorts_28124 = math.random(0, 1)
if choix_sorts_28124 == 0 then
pUnit:RegisterEvent('spell0_28124', 1, 1)
end
if choix_sorts_28124 == 1 then
pUnit:RegisterEvent('spell1_28124', 1, 1)
end
end

function mob28124_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28124', math.random(1500, 3000), 1)
end

function mob28124_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28124_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28124_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28124, 1, 'mob28124_Action')
RegisterUnitEvent(28124, 2, 'mob28124_Leave')
RegisterUnitEvent(28124, 3, 'mob28124_Kill')
RegisterUnitEvent(28124, 4, 'mob28124_Die')
